package com.isdepci.project.gasEmission.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.isdepci.project.gasEmission.mapper.EmployeeCommutingMapper;
import com.isdepci.project.gasEmission.domain.EmployeeCommuting;
import com.isdepci.project.gasEmission.service.IEmployeeCommutingService;

/**
 * 员工通勤Service业务层处理
 *
 * @author isdepci
 * @date 2023-09-01
 */
@Service
public class EmployeeCommutingServiceImpl implements IEmployeeCommutingService
{
    @Autowired
    private EmployeeCommutingMapper employeeCommutingMapper;

    /**
     * 查询员工通勤
     */
    @Override
    public EmployeeCommuting selectEmployeeCommutingById(Long id)
    {
        return employeeCommutingMapper.selectEmployeeCommutingById(id);
    }

    /**
     * 查询员工通勤列表
     */
    @Override
    public List<EmployeeCommuting> selectEmployeeCommutingList(EmployeeCommuting employeeCommuting)
    {
        return employeeCommutingMapper.selectEmployeeCommutingList(employeeCommuting);
    }

    /**
     * 新增员工通勤
     */
    @Override
    public int insertEmployeeCommuting(EmployeeCommuting employeeCommuting)
    {
        return employeeCommutingMapper.insertEmployeeCommuting(employeeCommuting);
    }

    /**
     * 修改员工通勤
     */
    @Override
    public int updateEmployeeCommuting(EmployeeCommuting employeeCommuting)
    {
        return employeeCommutingMapper.updateEmployeeCommuting(employeeCommuting);
    }

    /**
     * 批量删除员工通勤
     */
    @Override
    public int deleteEmployeeCommutingByIds(Long[] ids)
    {
        return employeeCommutingMapper.deleteEmployeeCommutingByIds(ids);
    }

    /**
     * 删除员工通勤信息
     */
    @Override
    public int deleteEmployeeCommutingById(Long id)
    {
        return employeeCommutingMapper.deleteEmployeeCommutingById(id);
    }
}
